package com.kxn.service;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.stereotype.Component;

import com.kxn.entity.Spitter;

@Component
@WebService(serviceName="SpService")
public class SpitterServiceEndpoint{
	
	@WebMethod
	public void addSpitter(int in){
		System.out.println(in);
	}
	
	@WebMethod
	public int getSpitterInt(int i){
		return 10+i;
	}
	
	@WebMethod
	public Spitter getSpitter(Spitter spitter){
		spitter.setAddress("abc");
		return spitter;
	}
}
